/*
 * Copyright 2009 Douglas Lockamy, dlockamy_at_gmail.com
 * All rights reserved. Distributed under the terms of the MIT License.
 */

BView = BDirectView.extend(
    function(frame,title,type,flags)
    {
        if(!frame)
            return -1;
        realFrame = new BFrame(frame.x,parseInt(frame.y)+25,parseInt(frame.height)+25,frame.width);
        this._super(realFrame,title,type,flags);
    }
);
    
BAlert = function(message)
{
    alert(message);
    return 0;
};

BBitmap = BView.extend(
    function(frame,title,type,flags)
    {
        this._super(frame,title,type,flags);
    }
);

BBox = BView.extend(
    function(frame,title,type,flags)
    {
        this._super(frame,title,type,flags);
    }
);

buttonCallBack = function(aView)
{
    alert("testCallBack()"+aView );
};

BButton  = BView.extend(
    function(frame,title,buttonText)
    {
        this._super(frame,title,null,null);

    this.addHTML("<button type=\"button\" id="+title+" onclick=buttonCallBack(this) >"+buttonText+"</button>");
   }
);

 
BImage = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);
 
 
BCheckBox = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BColorControl = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BControl = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BDragger = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BFont = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BInput = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addElement("input",title);   
    }
);

BListItem = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BListView = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BMenu = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BMenuBar = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);


BMenuField = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BMenuItem = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BOutlineListView = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BPicture = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BPictureButton = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BPopUpMenu = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BRadioButton = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BRegion = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BScreen = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BScrollBar = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BScrollView = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BSepearatorItem = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BShapeIterator = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BShelf = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BSider = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BStatusBar = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BStringItem = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BStringView = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BTab = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);


BTabView = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BTextControl = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);

BTextView = BView.extend(
    function(frame,title,path)
    {
        this._super(frame,title,null,null);
        this.addHTML("<img src=\""+path+"\" height=98% width=98% align=\"center\">");    
    }
);
